package com.github.cosycode.flow.base;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * <b>Description : </b>
 * <p>
 * <b>created in </b> 2022/12/16
 * </p>
 *
 * @author pengfchen
 * @since 1.0
 **/
@Data
@Slf4j
public class JobStageRecord<R> extends ActionRecord<R> {

    IEnumStage<?> stage;

    Exception exception;

    public boolean isSuccess() {
        return this.exception == null;
    }

}
